package cn.wolfcode.cms.mapper;

import cn.wolfcode.cms.domain.Membernum;
import cn.wolfcode.cms.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MembernumMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Membernum record);

    Membernum selectByPrimaryKey(Long id);

    List<Membernum> selectAll();

    int updateByPrimaryKey(Membernum record);


    int queryForCount(QueryObject qo);

    List<Membernum> queryForList(QueryObject qo);

    Membernum getRecordBykeyword(String keyword);

    Membernum selectMemberNumByCardNumAndProId(@Param("cardNum") String cardNum, @Param("ProductId") Long id);

    List<Membernum> getNumByCard(String cardnum);

    int getTotalSpend();
}